package cn.tedu.shoot;

import java.io.*;
import java.util.ArrayList;
import java.util.Collection;

public class Rank {

    public void rank() {
        Collection c=new ArrayList();
                FileInputStream fis = null;
        try {
            fis = new FileInputStream("./rank.txt");
            InputStreamReader isr = new InputStreamReader(fis);
            BufferedReader br = new BufferedReader(isr);
            String line;
            while ((line=br.readLine())!=null) {
                c.add(line);
            }
            System.out.println(c);
            br.close();
        } catch (Exception e) {
        }



        PrintWriter pw = null;
        try {
            pw = new PrintWriter("rank.txt");
        } catch (FileNotFoundException e) {
        }



        pw.println("sb");
        pw.println("svc");
        pw.println("ss");

        pw.close();

    }

    public static void main(String[] args) {
        Rank rank=new Rank();
        rank.rank();
    }

}
